package pluggableAnnotations;

/**
 * @Author: webmaster@pavel-kaminsky.com
 * @Date: 01/09/11
 */

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.element.TypeElement;
import java.util.Set;
import static javax.lang.model.SourceVersion.RELEASE_6;
import static javax.tools.Diagnostic.Kind.NOTE;

@SupportedAnnotationTypes("BlameItOn")
@SupportedSourceVersion(RELEASE_6)

public class BlameProcessor extends AbstractProcessor {
    @Override
    public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv)
    {

        if (!roundEnv.processingOver()) {
            processingEnv.getMessager().printMessage(NOTE,"Hello world from BarProcessor");
        }

        return true;
    }
}
